package jp.dip.sys1.android.sharp.walkquest.util;

import android.app.Activity;
import android.view.View;

public class Util {
	@SuppressWarnings("unchecked")
	public static <T> T find(Activity root, int id, Class<T> type){
		return (T)root.findViewById(id);
	}
	@SuppressWarnings("unchecked")
	public static <T> T find(View root, int id, Class<T> type){
		return (T)root.findViewById(id);
	}	
}
